// mfctestView.h : interface of the CmfctestView class
//


#pragma once


class CmfctestView : public CScrollView
{
protected: // create from serialization only
	CmfctestView();
	DECLARE_DYNCREATE(CmfctestView)

// Attributes
public:
	CmfctestDoc* GetDocument() const;

// Operations
	void OnInitialUpdate();
public:

// Overrides
public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);


	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);

    //afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
    int MPtoLp(double mp);
    double LPtoMp(int lp);
    void UpdateWnd();
    SIZE GetScrollSize();
// Implementation
public:
	virtual ~CmfctestView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
    double m_dFactor;                                      
// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in mfctestView.cpp
inline CmfctestDoc* CmfctestView::GetDocument() const
   { return reinterpret_cast<CmfctestDoc*>(m_pDocument); }
#endif

